package com.codeanalysissys.backend.ruby;

public class RubyField {
    public final String NAME;
    public String Modifier = "public";
//    public final String tarGet;
//    public final String SPECIFIER;

    public RubyField(String modifier, String name) {
        NAME = name;
//        this.tarGet = tarGet;
//        SPECIFIER = specifier == null ? "" : specifier;
        Modifier = modifier;
    }

    @Override
    public String toString() {
//        String specifier = SPECIFIER == "" ? "null" : SPECIFIER;
        StringBuilder str = new StringBuilder();
//        str.append("{ SPECIFIER : \"").append(specifier).append("\", ");
//        str.append("TARGET : \"").append(tarGet).append("\", ");
        str.append("NAME : \"").append(NAME).append("\" }");
        return str.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof RubyField))
            return false;
        RubyField f = (RubyField) obj;
        return (NAME.equals(f.NAME));
    }
}
